class AddProfileToUser < ActiveRecord::Migration
  def self.up
    add_column :users, :last_name, :string
    add_column :users, :first_name, :string
    add_column :users, :gender, :integer
    add_column :users, :birth, :date
    add_column :users, :phone, :string
    add_column :users, :area_id, :integer
    add_column :users, :privacy, :integer
    add_column :users, :identified, :boolean
  end

  def self.down
    remove_column :users, :last_name
    remove_column :users, :first_name
    remove_column :users, :gender
    remove_column :users, :birth
    remove_column :users, :phone
    remove_column :users, :area_id
    remove_column :users, :privacy
    remove_column :users, :identified
  end
end
